package com.holyant.report.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 商品销售数量统计dto
 * 
 * @author fkmalls
 * @date 2023-09-07
 */
@Data
@ApiModel("商品销售数量统计")
public class RptGoodsSalesStatisticsDto extends BaseDto {

    private static final long serialVersionUID = 1L;

    /** 属于哪一天 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "属于哪一天", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "属于哪一天")
    private LocalDate theDay;

    /**
     * 10=erp 20=ka 商品类型
     */
    private Integer goodsType;

    /**
     * 商品渠道
     */
    private String goodsChannel;


    /** 商品条码 */
    @Excel(name = "商品条码")
    @ApiModelProperty(value = "商品条码")
    private String goodsBarcode;
    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    /** 销量总量 */
    @Excel(name = "销量总量")
    @ApiModelProperty(value = "销量总量")
    private BigDecimal salesNumber;
    /** 订单总量 */
    @Excel(name = "订单总量")
    @ApiModelProperty(value = "订单总量")
    private BigDecimal orderNumber;

    private RptGoodsSalesStatisticsItemDto salesStatisticsItemDto;

    private RptGoodsSalesStatisticsItemDto orderStatisticsItemDto;
}
